package com.huang.Controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.huang.Service.ServiceImpl.OrderServieImpl02;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class OrderController02 {


    @Autowired
    private OrderServieImpl02 orderServieImpl02;

//    @Resource
//    OrderServiceImpl03 orderServiceImpl03;


    @GetMapping(value = "/message01")
    public String message01(){
        String link = orderServieImpl02.Link();
        return link;
    }

    @GetMapping(value = "/message02")
    public String message02(){
        String link = orderServieImpl02.Link();
        return link;
    }

    @GetMapping(value = "/HotParam")
    @SentinelResource(value = "hotparam")
    public String HotParam(@RequestParam("name") String name,@RequestParam("age") String age){
        return "HotParam"+name+age;
    }


//    @GetMapping(value = "/message03")
//    public String message03(){
//        return orderServiceImpl03.service01();
//    }



}
